package club.kingyin.kyblogprouser.service;

import club.kingyin.commons.enums.BlogEnum;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import club.kingyin.commons.entity.user.User;

import java.io.Serializable;
import java.util.List;

/**
 * (User)表服务接口
 *
 * @author makejava
 * @since 2022-01-20 15:04:02
 */
public interface UserService extends IService<User> {

    Page<User> selectPage(Page<User> page, User user);

    User selectById(Serializable id);

    User equalsAndGet(User user);

    User selectByUsername(String mail);

    User insert(User user);

    boolean passByUsername(User user);

    boolean updatePassword(User user);

    Page<User> getFriendsByUserIdAndStatus(Page<User> page,int userid, BlogEnum status);

    User selectById(int id, LambdaQueryWrapper<User> wrapper);

    List<User> selectUserNickname();
}

